//
//  MGOCRManager.h
//  MGFaceDetection
//
//  Created by megvii on 15/12/22.
//  Copyright © 2015Year megvii. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MGOCRDetectionManager.h"
#import "MGLiveConfig.h"

NS_ASSUME_NONNULL_BEGIN

@interface MGOCRManager : NSObject

+ (instancetype)share;

/**
 启动检测器

 @param viewController 开启活体检测器的 viewcontroller
 @param ClientID 商户ID
 @param clientSecret 商户secret
 @param configuration 界面配置
 @param finish 成功的回调
 @param error 失败的回调
 @param cancel 取消的回调
 */
- (void)startOCRDetectionViewController:(UIViewController *)viewController
                               ClientID:(NSString*)ClientID
                   ClienclientSecrettID:(NSString*)clientSecret
                        UIconfiguration:(UIConfigurationHandler)configuration
                                 finish:(faceSuccess)finish
                                  error:(void(^)(MGLivenessDetectionFailedType errorType, UIViewController *vc))error
                                 cancel:(CancelHandler)cancel;
@end

NS_ASSUME_NONNULL_END
